# 指定使用的 cmake 的最低版本
cmake_minimum_required(VERSION 3.0)
set(DCMAKE_CXX_STANDARD 11)
project(CALC)
include_directories(${PROJECT_SOURCE_DIR}/include)
set(HOME ./dist)
set(EXECUTABLE_OUTPUT_PATH ${HOME}/bin)
SET (SRC_LIST add.c div.c main.c mult.c sub.c)
# 搜索 src 目录下的源文件
aux_source_directory(${CMAKE_CURRENT_SOURCE_DIR}/src SRC_LIST)
add_executable(app ${SRC_LIST})